package com.YCH.article.controller.v1;

import com.YCH.apis.AD.apis.ADControllerApi;
import com.YCH.article.service.AppADService;
import com.YCH.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api/v1/ad")
public class ADController implements ADControllerApi {
    @Autowired
    private AppADService appADService;

    @Override
    @GetMapping("/head_ad/{group}")
    public ResponseResult loadAD(@PathVariable("group")int group) {
        return appADService.loadAD(group);
    }
}
